<html>

<head>
    <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
    <title>bootstrap中文后台开发框架</title>
    <link rel="icon" href="favicon.ico" type="image/ico">
    <link href="css/style.css" rel="stylesheet">
    <link href="css/bootstrap.min.css" rel="stylesheet">
    <link href="css/theme.css" rel="stylesheet">
    <link href="css/fonts.css" rel="stylesheet">
    <script src="js/jquery.min.js"></script>
    <script src="js/bootstrap.js"></script>
    <script src="js/jquery.cookie.js"></script>
    <script src="js/framework.js"></script>
    <script src="js/index.js"></script>
    <script src="js/indextab.js"></script>
    <script src="js/pace.min.js"></script>
</head>

<body class="theme-blue-gradient pace-done">
    #include("./common/header.htm")
    <div id="coupon_content">
        <div id="content-wrapper">
            <div class="content-iframe" style="background-color: #f9f9f9;">
                <div class="mainContent" id="content-main" style="margin: 0px; padding: 0px; height: 1050px;">
                    <!-- <iframe name="main_iframe" width="100%" height="100%" id="default" frameborder="0"> -->
                    <!--页面主要内容-->
                    <main class="ftdms-layout-content">
                        <div style="margin: 20px;border:  1px solid rgb(174, 172, 172);">
                            <div class="row">
                                <div class="col-md-4" style="text-align: left; padding: 2%;"><i class="ftsucai-124"></i>
                                    搜索筛选 </div>
                                <div class="col-md-4 col-md-offset-4" style="text-align: right;padding: 2%;">
                                    <button @click="resetsearchinfo()" class="btn btn-info .btn-xs">重置</button>
                                    <button @click="search()" class="btn btn-default .btn-xs">搜索</button>
                                </div>
                            </div>
                            <div class="row" style="height: 100px;">
                                <div class="col-md-2" style="padding-top: 15px;">
    
                                </div>
                                <div class="col-md-4" style="padding-top: 15px;">
                                    <div class="col-xs-12">
                                        <input class="form-control" type="text" v-model="selectfullminus"
                                            name="example-text-input" placeholder="输入可用金额下限">
                                    </div>
                                </div>
                    
                                <div class="col-md-4" style="padding-top: 15px;">
                                    <div class="row">
                                        <div class="col-md-6" style="text-align: center;">请选择商铺：</div>
                                        <div class="col-md-6">
                                            <select v-model="selectshopname" class="form-control" name="example-select" size="1">
                                                <option v-for="(shopname,index) in shopnames" :value="shopname">{{shopname}}</option>
                                            </select>
                                        </div>
                                    </div>
                                </div>
                                <div class="col-md-2" style="padding-top: 15px;">
    
                                </div>
                            </div>
                        </div>
    
                        <div class="row" style="height: 60px;margin: 20px;border: 1px solid rgb(174, 172, 172);">
                            <div class="col-md-6" style="text-align: left;padding-top: 20px;">
                                <i class="ftsucai-Sales"></i> 数据列表
                            </div>
                            <div class="col-md-6" style="text-align: right;padding-top: 10px;">
                                <button class="btn btn-default"><a href="new_coupon.html">添加</a></button>
                            </div>
                        </div>
                        <div style="margin-left: 20px;margin-right: 20px; margin-bottom: 150px;">
                            <table class="table table-hover table-bordered">
                                <thead>
                                    <tr>
                                        <th>优惠卷编号</th>
                                        <th>使用店铺</th>
                                        <th>使用门槛</th>
                                        <th>优惠量</th>
                                        <th>库存</th>
                                        <th>是否上架</th>
                                        <th>操作</th>
                                    </tr>
                                </thead>
                                <tbody>
                                    <tr v-for="(coupon,index) in coupons">
                                        <th scope="row">{{coupon.couponid}}</th>
                                        <td><a href="http://www.baidu.com">{{coupon.shopname}}</a></td>
                                        <td>{{coupon.fullminus}}</td>
                                        <td>{{coupon.discount}}</td>
                                        <td>
                                            {{coupon.stock}}
                                        </td>
                                        <td style="text-align: center;">
                                            <label @click="setavailable(index)" class="ftdms-switch switch-solid switch-info">
                                                <input type="checkbox" v-model="coupon.avalaible">
                                                <span></span>
                                            </label>
                                        </td>
                                        <td>
                                            <div class="btn-group">
                                                <a class="btn btn-xs btn-default submenuitem" @click="seteidtmessage(index)"
                                                    target="_self" title="编辑" data-toggle="modal"
                                                    data-target="#updatecoupons"><i class="ftsucai-edit-2"></i></a>
                                                <a class="btn btn-xs btn-default submenuitem" href="pages_data.html"
                                                    target="_self" title="删除"><i class="ftsucai-del-2"></i></a>
                                            </div>
                                        </td>
                                    </tr>
                                </tbody>
                            </table>
                            <div style="text-align: center;">
                                <nav>
                                    <ul class="pagination pagination-circle">
                                        <li class="disabled">
                                            <a href="#">
                                                <span><i class="ftsucai-146"></i></span>
                                            </a>
                                        </li>
                                        <li class="active"><a href="#">1</a></li>
                                        <li><a class="submenuitem" href="category_manage.html">2</a></li>
                                        <li><a class="submenuitem" href="category_manage.html">3</a></li>
                                        <li><a class="submenuitem" href="category_manage.html">4</a></li>
                                        <li><a class="submenuitem" href="category_manage.html">5</a></li>
                                        <li>
                                            <a href="#">
                                                <span><i class="ftsucai-139"></i></span>
                                            </a>
                                        </li>
                                    </ul>
                                </nav>
                                <div style="margin-left : 500px;margin-right: 500px;">
                                    前往<input type="text" style="width: 20px" id="example-text-input" placeholder="">页
                                </div>
    
                            </div>
    
                        </div>
    
    
    
                        <div class="modal fade" role="dialog" aria-labelledby="gridSystemModalLabel" id="updatecoupons">
                            <div class="modal-dialog" role="document">
                                <div class="modal-content">
                                    <div class="modal-header">
                                        <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                                                aria-hidden="true">&times;</span></button>
                                        <h4 class="modal-title" id="gridSystemModalLabel">修改优惠卷信息</h4>
                                    </div>
                                    <div class="modal-body">
                                        <table style="padding: 80px;">
                                            <tr>
                                                <td style="padding: 30px;">使用门槛</td>
                                                <td colspan="2" style="padding: 30px;">
                                                    <input class="form-control" type="text" id="example-text-input" name="example-text-input"
                                                        placeholder="文本.." v-model="editfullminus">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding: 30px;">优惠量</td>
                                                <td colspan="2" style="padding: 30px;">
                                                    <input class="form-control" type="text" id="example-text-input" name="example-text-input"
                                                        placeholder="文本.." v-model="editdiscount">
                                                </td>
                                            </tr>
                                            <tr>
                                                <td style="padding: 30px;">库存</td>
                                                <td colspan="2" style="padding: 30px;">
                                                    <input class="form-control" type="text" id="example-text-input" name="example-text-input"
                                                        placeholder="文本.." v-model="editstock">
                                                </td>
                                            </tr>
                                        </table>
                                    </div>
                                    <div class="modal-footer" style="text-align: center;">
                                        <button type="button" class="btn btn-default" data-dismiss="modal">关闭</button>
                                        <button type="button" class="btn btn-primary" @click="updatecoupon()">点击保存</button>
                                    </div>
                                </div>
                            </div>
                        </div>
                    </main>
                </div>
            </div>
        </div>
    </div>

</body>

</html>